$(document).ready(function () {
    car_form.onload();
})

var car_form = (function () {

    var init = function () {
    	layui.use('form', function(){
			  var form = layui.form
		});
    }

    return {
        onload : function () {
            init();
            car_form.dateShow();
        },
        saveForm:function(){
        	layui.use('layer', function(){
				var layer = layui.layer;
				layer.confirm('保存成功，是否维护应税明细信息？', {
				btn: ['确定', '取消'] //按钮
				}, function() {
					layer.closeAll();
					
				}, function() {
					window.location.href='car_boat.html';
				})
			}); 
		},
        /*日期显示*/
        dateShow:function(){
        	layui.use('laydate', function(){
			  var laydate = layui.laydate;
			  laydate.render({
				    elem: '#wxl_date1'
				    ,theme: 'molv'
			 });
			})
        }
    }
})();
